using System.Threading.Tasks;
using System.Collections.Generic;
using XchUserInfo.Model;

namespace XchUserInfo.DAL
{
    public interface IXchUserDAO
    {
        Task<XchUser?> GetAsync(int id);
        Task<int> InsertAsync(XchUser entity);
        Task<bool> UpdateAsync(XchUser entity);
        Task<bool> DeleteAsync(int id);
        Task<PagedList<XchUser>> PageAsync(int pageIndex, int pageSize, string? nameLike, string? emailLike, string? phoneLike);
    }
}



